package com.zyx.mpdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyx.mpdemo.model.entity.User;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Yaxi.Zhang
 * @since 2022/3/28 17:09
 */
public interface IUserService extends IService<User> {

    @Transactional(rollbackFor = Exception.class)
    void transAsyncQuery();

    @Transactional(rollbackFor = Exception.class)
    void transSyncQuery();

    @Transactional(rollbackFor = Exception.class)
    void syncAfterTransQuery();
}
